<?php

namespace App\Http\Controllers\Track;

use App\Models\Track;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class TrackController extends Controller
{
   //足迹列表
    public function index()
    {
    $tracks=Track::where('user_id',auth()->user()->id)->with('getGoods')->get()->toArray();
//    dd($tracks);
    return view('track.track.index',compact('tracks'));
    }

 
}
